$(function () {
    $("#jqGrid").jqGrid({
        url: baseURL + strUrl[selectType],
        datatype: "json",
		postData:requestParameters,
        colModel: [
			{ label: 'id', name: 'id', index: 'id', width: 50, key: true },
			{ label: uidLabel[selectType], name: 'uid', width: 80 },
			{ label: '昵称', name: 'nickname', index: 'tags', width: 80 },
            { label: objectuidLabel[selectType], name: 'objectUid', width: 80 },
			{ label: '关注时间', name: 'adddate', index: 'adddate', width: 80 ,formatter:timestampForMS},
        ],
		viewrecords: true,
        height: 385,
        rowNum: 10,
		rowList : [10,30,50],
        rownumbers: true, 
        rownumWidth: 25, 
        autowidth:true,
        multiselect: true,
        pager: "#jqGridPager",
        jsonReader : {
            root: "page.list",
            page: "page.currPage",
            total: "page.totalPage",
            records: "page.totalCount"
        },
        prmNames : {
            page:"page", 
            rows:"limit", 
            order: "order",
        },
        gridComplete:function(){
        	//隐藏grid底部滚动条
        	$("#jqGrid").closest(".ui-jqgrid-bdiv").css({ "overflow-x" : "hidden" }); 
        }
    });
});


